package com.example.tests;

import org.testng.annotations.Test;

public class ContactEditTests extends BaseClass{

	@Test
	
	public void editFirstContacts() {
		app.getNavigationWorker().openMainPage();
		app.getActionWorker().flag(1);
		app.getActionWorker().iconEdit(1);
		ContactObjects contactInfo = new ContactObjects();
		contactInfo.firstName = "new first name";
		contactInfo.lastName = "new last name";
		contactInfo.address1 = "new address 1";
		contactInfo.homePhone1 = "new home phone";
		app.getContactWorker().fillupContactForm(contactInfo);
		app.getActionWorker().update();
		app.getNavigationWorker().gotoHomePage();
	}
	
	@Test
	
	public void editSelectedContacts() {
		app.getNavigationWorker().openMainPage();
		app.getActionWorker().flag(3);
		app.getActionWorker().iconEdit(3);
		ContactObjects contactInfo = new ContactObjects();
		contactInfo.firstName = "third first name";
		contactInfo.lastName = "third last name";
		contactInfo.address1 = "new third address 1";
		contactInfo.homePhone1 = "new third home phone";
		app.getContactWorker().fillupContactForm(contactInfo);
		app.getActionWorker().update();
		app.getNavigationWorker().gotoHomePage();
	}
}
